/**
* \file Battlecruiser.cpp
* \brief Ensemble des methodes de la classe Battlecruiser
* \author FEKI Mehdi && RIPOCHE Emilien
* \version 1.0
* \date 04/12/2011
*/

#include "Battlecruiser.h"

Battlecruiser::Battlecruiser() 
	: Vaisseau() {}

Battlecruiser::Battlecruiser(int posX, int posY) 
	: Vaisseau(posX, posY) {}

bool Battlecruiser::tirer() {
	if (_nbCharges <= 0) {
		return false;
	}
	--_nbCharges;
	return true;
}

bool Battlecruiser::charger() {
	if (_nbCharges >= NBCHARGESMAXBA) {
		return false;
	}
	++_nbCharges;
	return true;
}

Vaisseau::TypeVaisseau Battlecruiser::type() const {
	return Vaisseau::Battlecruiser;
}

void Battlecruiser::prendreArtefact() {
	setHasArtefact(true);
}

void Battlecruiser::libererArtefact() {
	setHasArtefact(false);
}